namespace UniversalAdminSystem.Domian.PermissionManagement.ValueObjects;

public record RoleDescription
{
    public string? Value { get; }
    private RoleDescription(string? value)
    {
        if (value?.Length > 200)
            throw new ArgumentException("角色描述不能超过200个字符");
        Value = value;
    }
    public static RoleDescription Create(string? value) => new(value);
    public static implicit operator string?(RoleDescription desc) => desc.Value;
} 